import { createApp } from 'vue'
import App from './App.vue'
import Router from './router'

import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createPinia } from 'pinia'

//引入全局样式
import './sass/index.scss'


const app = createApp(App)
const pinia = createPinia()

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(Router).use(ElementPlus).use(pinia)

app.mount('#app')
